Using layer space transform methodsUse layer space transform methods to transform values from one space to another, such as from layer space to world space. The "from" methods transform values from the layer's space to the named space (comp or world). The "to" methods transform values from the named space (comp or world) to the layer space. Each transform method takes an optional parameter to determine the time at which the layer's transform is computed; however, you can almost always use the current (default) time. Use Vec transform methods when transforming a direction vector, such as the difference between two position values. Use the plain (non-Vec) transform methods when transforming a point, such as position. Comp and world space are the same for 2D layers. For 3D layers, however, comp space is relative to the active camera, and world space is independent of the camera. (See Layer space transform methods.) |